<template>
  <!-- 生日查询 -->
  <div>
    <Card>
      <Tabs v-model="name" :animated="false">
        <TabPane label="生日客户" name="1">
          <!-- <supervise @resetBadge="resetBadge($event)"></supervise> -->
          <birthday-clients />
        </TabPane>
        <TabPane label="生日业务员" name="2">
          <!-- <charge @resetBadge="resetBadge($event)"></charge> -->
          <birthday-salesman />
        </TabPane>
      </Tabs>
    </Card>
  </div>
</template>

<script>
import birthdayClients from "./birthdayClients.vue";
import BirthdaySalesman from "./birthdaySalesman.vue";
export default {
  components: { birthdayClients, BirthdaySalesman },
  name: "barthday",
  data() {
    return {
      name: "1",
    };
  },
  created() {
    let birthday = JSON.parse(localStorage.getItem("birthday"));
    if (birthday) {
      this.name = "2";
    }
  },
};
</script>
